/*
 * MODULE  NAME  :
 * PROGRAM NAME  : renrendai.h
 * AUTHOR        : HOTMOCHA
 * CREATE  DATE  : 2015-02-01 20:13:47
 * PROGRAM DESC  :
 *
 * HISTORY       :
 *
 */
#ifndef _H_RENRENDAI_H_
#define _H_RENRENDAI_H_

#include "worker.h"
#include "workermanager.h"

extern struct TaskEnv* gTenv;

#define CERFILENAME				"renrendai.cer"

#define RENRENDAI_SESSIONDID				"JSESSIONID"
#define RENRENDAI_LOANID				"LOANID"
#define RENRENDAI_USERID				"USERID"

#define RENRENDAI_ERR_GETSESSIONID	-1

/* 错误控制 */
#define RSP_OK			0
#define RSP_TOOFAST		1
#define RSP_UNKNOW		2

#define TOOFASTCODE		302

int CheckResp(struct HttpReq *req);

#endif
